import { withInstall } from '@ibiz-template/vue3-util';
import { registerGridColumnProvider } from '@ibiz-template/runtime';
import { GridFieldEditColumn } from './grid-field-edit-column';
import { GridFieldEditColumnProvider } from './grid-field-edit-column.provider';

export const IBizGridFieldEditColumn = withInstall(GridFieldEditColumn, v => {
  v.component(GridFieldEditColumn.name!, GridFieldEditColumn);
  registerGridColumnProvider(
    'DEFGRIDCOLUMN_EDIT',
    () => new GridFieldEditColumnProvider(),
  );
});
